package com.chengcang.admin.modules.busi.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.chengcang.admin.modules.busi.dto.BusiOrderInfoDTO;
import com.chengcang.common.service.CrudService;
import com.chengcang.admin.modules.busi.dto.BusiOrderDTO;
import com.chengcang.admin.modules.busi.entity.BusiOrderEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author zhanli
 * @since 1.0.0 2023-01-10
 */
public interface BusiOrderService extends CrudService<BusiOrderEntity, BusiOrderDTO> {

    BusiOrderInfoDTO detail(Long id);

    void deliver(BusiOrderDTO dto);

    Page<BusiOrderDTO> getDemandPage(Map<String, Object> params);

    Page<BusiOrderDTO> getAllPage(Map<String, Object> params);

    Page<BusiOrderDTO> getSupplyPage(Map<String, Object> params);

    public void saveOrder(BusiOrderDTO dto);

    public void concurrentSaveOrder(BusiOrderDTO dto);

    public void close( List<BusiOrderDTO> dtos);
}